package org.x.commonmod.enums;

import com.mybatisflex.annotation.EnumValue;

public enum RiskLevel {
    /**
     * 低风险
     */
    LOW("低风险", 1),
    /**
     * 中风险
     */
    MEDIUM("中风险", 2),
    /**
     * 高风险
     */
    HIGH("高风险", 3),
    /**
     * 严重风险
     */
    CRITICAL("严重风险", 4);

    private final String desc;
    private final Integer code;

    RiskLevel(String desc, Integer code) {
        this.desc = desc;
        this.code = code;
    }

    @EnumValue
    public String getName(){
        return name();
    }
}
